
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>CrudController基类 · Diboot基础框架</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-anchor-navigation-ex/style/plugin.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-theme-vuejs-2/vue.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="CrudRestController基类.html" />
    
    
    <link rel="prev" href="Controller基类.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                



<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../开始使用.html">
            
                <a href="../开始使用.html">
            
                    
                    开始使用
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.2.1" data-path="../开始使用/搭建环境.html">
            
                <a href="../开始使用/搭建环境.html">
            
                    
                    搭建环境
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="../开始使用/使用framework.html">
            
                <a href="../开始使用/使用framework.html">
            
                    
                    使用diboot-framework
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../CRUD通用封装.html">
            
                <a href="../CRUD通用封装.html">
            
                    
                    CRUD通用封装
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../CRUD通用封装/Model基类.html">
            
                <a href="../CRUD通用封装/Model基类.html">
            
                    
                    Model基类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../CRUD通用封装/Service基类.html">
            
                <a href="../CRUD通用封装/Service基类.html">
            
                    
                    Service基类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../CRUD通用封装/Mapper基类与SQL.html">
            
                <a href="../CRUD通用封装/Mapper基类与SQL.html">
            
                    
                    Mapper基类与SQL
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../MVC通用封装.html">
            
                <a href="../MVC通用封装.html">
            
                    
                    MVC通用封装
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="Controller基类.html">
            
                <a href="Controller基类.html">
            
                    
                    Controller基类
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.4.2" data-path="CrudController基类.html">
            
                <a href="CrudController基类.html">
            
                    
                    CrudController基类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="CrudRestController基类.html">
            
                <a href="CrudRestController基类.html">
            
                    
                    CrudRestController基类
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../认证与安全.html">
            
                <a href="../认证与安全.html">
            
                    
                    认证与安全
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../认证与安全/jwt授权.html">
            
                <a href="../认证与安全/jwt授权.html">
            
                    
                    JWT认证
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../认证与安全/CSRF防护.html">
            
                <a href="../认证与安全/CSRF防护.html">
            
                    
                    CSRF防护
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../认证与安全/XSS防护.html">
            
                <a href="../认证与安全/XSS防护.html">
            
                    
                    XSS防护
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="../系统参数配置.html">
            
                <a href="../系统参数配置.html">
            
                    
                    系统参数配置
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="../系统参数配置/配置文件.html">
            
                <a href="../系统参数配置/配置文件.html">
            
                    
                    参数配置在文件中
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="../系统参数配置/数据库表.html">
            
                <a href="../系统参数配置/数据库表.html">
            
                    
                    参数配置在数据库表中
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../系统日志记录.html">
            
                <a href="../系统日志记录.html">
            
                    
                    系统日志记录
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../系统日志记录/操作日志.html">
            
                <a href="../系统日志记录/操作日志.html">
            
                    
                    操作日志
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../系统日志记录/跟踪日志.html">
            
                <a href="../系统日志记录/跟踪日志.html">
            
                    
                    跟踪日志
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../常用工具类.html">
            
                <a href="../常用工具类.html">
            
                    
                    常用工具类
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../常用工具类/D.html">
            
                <a href="../常用工具类/D.html">
            
                    
                    日期时间类D
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../常用工具类/S.html">
            
                <a href="../常用工具类/S.html">
            
                    
                    字符串类S
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../常用工具类/V.html">
            
                <a href="../常用工具类/V.html">
            
                    
                    数据校验类V
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../常用工具类/BeanUtils.html">
            
                <a href="../常用工具类/BeanUtils.html">
            
                    
                    Bean工具类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.5" data-path="../常用工具类/JSON.html">
            
                <a href="../常用工具类/JSON.html">
            
                    
                    Json工具类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.6" data-path="../常用工具类/Encryptor.html">
            
                <a href="../常用工具类/Encryptor.html">
            
                    
                    加解密类
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.7" data-path="../常用工具类/IdGenerator.html">
            
                <a href="../常用工具类/IdGenerator.html">
            
                    
                    ID生成器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.8" data-path="../常用工具类/Query.html">
            
                <a href="../常用工具类/Query.html">
            
                    
                    条件构造器
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../通用基础模型.html">
            
                <a href="../通用基础模型.html">
            
                    
                    通用基础模型
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../通用基础模型/用户角色权限.html">
            
                <a href="../通用基础模型/用户角色权限.html">
            
                    
                    用户角色权限
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../通用基础模型/元数据.html">
            
                <a href="../通用基础模型/元数据.html">
            
                    
                    元数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../通用基础模型/文件.html">
            
                <a href="../通用基础模型/文件.html">
            
                    
                    文件
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>



                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                

                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >CrudController基类</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <div id="anchor-navigation-ex-navbar"><i class="fa fa-navicon"></i><ul><li><span class="title-icon "></span><a href="#crudcontroller&#x57FA;&#x7C7B;"><b>1. </b>CrudController&#x57FA;&#x7C7B;</a></li><ul><li><span class="title-icon "></span><a href="#&#x521B;&#x5EFA;&#x4E00;&#x4E2A;controller&#x7C7B;"><b>1.1. </b>&#x521B;&#x5EFA;&#x4E00;&#x4E2A;controller&#x7C7B;</a></li><li><span class="title-icon "></span><a href="#&#x91CD;&#x5199;&#x62BD;&#x8C61;&#x65B9;&#x6CD5;"><b>1.2. </b>&#x91CD;&#x5199;&#x62BD;&#x8C61;&#x65B9;&#x6CD5;</a></li><li><span class="title-icon "></span><a href="#&#x4F7F;&#x7528;&#x5DF2;&#x6709;&#x529F;&#x80FD;"><b>1.3. </b>&#x4F7F;&#x7528;&#x5DF2;&#x6709;&#x529F;&#x80FD;</a></li><ul><li><span class="title-icon "></span><a href="#&#x521B;&#x5EFA;&#x5217;&#x8868;&#x9875;&#x9762;"><b>1.3.1. </b>&#x521B;&#x5EFA;&#x5217;&#x8868;&#x9875;&#x9762;</a></li><li><span class="title-icon "></span><a href="#&#x521B;&#x5EFA;&#x8BE6;&#x60C5;&#x9875;&#x9762;"><b>1.3.2. </b>&#x521B;&#x5EFA;&#x8BE6;&#x60C5;&#x9875;&#x9762;</a></li><li><span class="title-icon "></span><a href="#&#x521B;&#x5EFA;&#x65B0;&#x5EFA;&#x9875;&#x9762;"><b>1.3.3. </b>&#x521B;&#x5EFA;&#x65B0;&#x5EFA;&#x9875;&#x9762;</a></li><li><span class="title-icon "></span><a href="#&#x63A5;&#x6536;&#x65B0;&#x5EFA;&#x6570;&#x636E;"><b>1.3.4. </b>&#x63A5;&#x6536;&#x65B0;&#x5EFA;&#x6570;&#x636E;</a></li><li><span class="title-icon "></span><a href="#&#x521B;&#x5EFA;&#x66F4;&#x65B0;&#x9875;&#x9762;"><b>1.3.5. </b>&#x521B;&#x5EFA;&#x66F4;&#x65B0;&#x9875;&#x9762;</a></li><li><span class="title-icon "></span><a href="#&#x63A5;&#x6536;&#x66F4;&#x65B0;&#x6570;&#x636E;"><b>1.3.6. </b>&#x63A5;&#x6536;&#x66F4;&#x65B0;&#x6570;&#x636E;</a></li><li><span class="title-icon "></span><a href="#&#x5220;&#x9664;&#x5DF2;&#x6709;&#x6570;&#x636E;"><b>1.3.7. </b>&#x5220;&#x9664;&#x5DF2;&#x6709;&#x6570;&#x636E;</a></li></ul></ul></ul></div><a href="#crudcontroller&#x57FA;&#x7C7B;" id="anchorNavigationExGoTop"><i class="fa fa-arrow-up"></i></a><h1 id="crudcontroller&#x57FA;&#x7C7B;"><a name="crudcontroller&#x57FA;&#x7C7B;" class="anchor-navigation-ex-anchor" href="#crudcontroller&#x57FA;&#x7C7B;"><i class="fa fa-link" aria-hidden="true"></i></a>1. CrudController&#x57FA;&#x7C7B;</h1>
<p>BaseCrudController&#x7EE7;&#x627F;&#x81EA;BaseController&#xFF0C;&#x7528;&#x4E8E;&#x521B;&#x5EFA;&#x57FA;&#x4E8E;&#x9875;&#x9762;&#x7684;&#x589E;&#x5220;&#x6539;&#x67E5;&#x7C7B;&#x4F3C;&#x7684;controller&#x3002;</p>
<h2 id="&#x521B;&#x5EFA;&#x4E00;&#x4E2A;controller&#x7C7B;"><a name="&#x521B;&#x5EFA;&#x4E00;&#x4E2A;controller&#x7C7B;" class="anchor-navigation-ex-anchor" href="#&#x521B;&#x5EFA;&#x4E00;&#x4E2A;controller&#x7C7B;"><i class="fa fa-link" aria-hidden="true"></i></a>1.1. &#x521B;&#x5EFA;&#x4E00;&#x4E2A;controller&#x7C7B;</h2>
<p>&#x5728;&#x60A8;&#x7684;&#x9879;&#x76EE;&#x4E2D;controller&#x5305;&#x4E0B;&#x521B;&#x5EFA;&#x4E00;&#x4E2A;controller&#x7C7B;&#xFF0C;&#x5E76;&#x7EE7;&#x627F;&#x81EA;framework&#x4E2D;&#x7684;BaseCrudController&#x7C7B;&#xFF0C;&#x5E76;&#x6DFB;&#x52A0;@Controller&#x4E0E;@RequestMapping(&quot;&quot;)&#x6CE8;&#x89E3;&#xFF0C;&#x5982;&#x4E0B;&#xFF1A;</p>
<pre><code class="lang-java"><span class="hljs-meta">@Controller</span>
<span class="hljs-meta">@RequestMapping</span>(<span class="hljs-string">&quot;/metadata&quot;</span>)
<span class="hljs-keyword">public</span> <span class="hljs-class"><span class="hljs-keyword">class</span> <span class="hljs-title">MetadataController</span> <span class="hljs-keyword">extends</span> <span class="hljs-title">BaseCrudController</span> </span>{

}
</code></pre>
<h2 id="&#x91CD;&#x5199;&#x62BD;&#x8C61;&#x65B9;&#x6CD5;"><a name="&#x91CD;&#x5199;&#x62BD;&#x8C61;&#x65B9;&#x6CD5;" class="anchor-navigation-ex-anchor" href="#&#x91CD;&#x5199;&#x62BD;&#x8C61;&#x65B9;&#x6CD5;"><i class="fa fa-link" aria-hidden="true"></i></a>1.2. &#x91CD;&#x5199;&#x62BD;&#x8C61;&#x65B9;&#x6CD5;</h2>
<ul>
<li>&#x5728;framework&#x7684;BaseCrudController&#x4E2D;&#xFF0C;&#x5171;&#x5177;&#x6709;&#x4E00;&#x4E2A;&#x62BD;&#x8C61;&#x65B9;&#x6CD5;&#x3002;</li>
<li>&#x5728;&#x65B0;&#x5EFA;&#x7684;&#x7C7B;&#x4E2D;&#xFF0C;&#x91CD;&#x5199;&#x8BE5;&#x65B9;&#x6CD5;&#xFF0C;&#x8FD4;&#x56DE;&#x6CE8;&#x5165;&#x7684;&#x76F8;&#x5173;Service&#x3002;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-meta">@Autowired</span>
<span class="hljs-keyword">private</span> MetadataService metadataService;

<span class="hljs-meta">@Override</span>
<span class="hljs-function"><span class="hljs-keyword">protected</span> BaseService <span class="hljs-title">getService</span><span class="hljs-params">()</span> </span>{
    <span class="hljs-keyword">return</span> metadataService;
}
</code></pre>
<h2 id="&#x4F7F;&#x7528;&#x5DF2;&#x6709;&#x529F;&#x80FD;"><a name="&#x4F7F;&#x7528;&#x5DF2;&#x6709;&#x529F;&#x80FD;" class="anchor-navigation-ex-anchor" href="#&#x4F7F;&#x7528;&#x5DF2;&#x6709;&#x529F;&#x80FD;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3. &#x4F7F;&#x7528;&#x5DF2;&#x6709;&#x529F;&#x80FD;</h2>
<p>&#x5728;framework&#x4E2D;&#x7684;BaseCURDController&#x4E2D;&#xFF0C;&#x5DF2;&#x7ECF;&#x5185;&#x7F6E;&#x4E86;&#x76F8;&#x5173;&#x529F;&#x80FD;&#xFF0C;&#x6BD4;&#x5982;&#x5217;&#x8868;&#x9875;&#xFF0C;&#x8BE6;&#x60C5;&#x9875;&#xFF0C;&#x65B0;&#x5EFA;&#x66F4;&#x65B0;&#x9875;&#x7684;&#x6570;&#x636E;&#x5904;&#x7406;&#x6D41;&#x7A0B;&#x7B49;&#xFF0C;&#x60A8;&#x9700;&#x8981;&#x505A;&#x7684;&#x53EA;&#x662F;&#x5C06;&#x9700;&#x8981;&#x7684;&#x529F;&#x80FD;&#x6DFB;&#x52A0;&#x4E00;&#x4E2A;&#x65B9;&#x6CD5;&#x5728;&#x65B0;&#x5EFA;&#x7684;controller&#x4E2D;&#xFF0C;&#x5E76;&#x4E14;&#x8C03;&#x7528;&#x7236;&#x7EA7;&#x76F8;&#x5173;&#x65B9;&#x6CD5;&#x5E76;&#x8FD4;&#x56DE;&#x3002;</p>
<h3 id="&#x521B;&#x5EFA;&#x5217;&#x8868;&#x9875;&#x9762;"><a name="&#x521B;&#x5EFA;&#x5217;&#x8868;&#x9875;&#x9762;" class="anchor-navigation-ex-anchor" href="#&#x521B;&#x5EFA;&#x5217;&#x8868;&#x9875;&#x9762;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.1. &#x521B;&#x5EFA;&#x5217;&#x8868;&#x9875;&#x9762;</h3>
<ul>
<li>&#x57FA;&#x672C;&#x7528;&#x6CD5;&#x5982;&#x4E0B;&#xFF0C;&#x8BE5;&#x529F;&#x80FD;&#x81EA;&#x5E26;&#x5206;&#x9875;&#x4EE5;&#x53CA;&#x83B7;&#x53D6;Get&#x53C2;&#x6570;&#x4F5C;&#x4E3A;&#x67E5;&#x8BE2;&#x6761;&#x4EF6;&#x7684;&#x80FD;&#x529B;&#x3002;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-meta">@Override</span>
<span class="hljs-meta">@GetMapping</span>(<span class="hljs-string">&quot;/list&quot;</span>)
<span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">list</span><span class="hljs-params">(HttpServletRequest request, ModelMap modelMap)</span> <span class="hljs-keyword">throws</span> Exception </span>{
    <span class="hljs-comment">// &#x52A0;&#x8F7D;&#x7B2C;&#x4E00;&#x9875;</span>
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">super</span>.listPaging(<span class="hljs-number">1</span>, request, modelMap);
}

<span class="hljs-meta">@Override</span>
<span class="hljs-meta">@GetMapping</span>(<span class="hljs-string">&quot;/list/{pageIndex}&quot;</span>)
<span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">listPaging</span><span class="hljs-params">(@PathVariable(<span class="hljs-string">&quot;pageIndex&quot;</span>)</span><span class="hljs-keyword">int</span> pageIndex, HttpServletRequest request, ModelMap modelMap) <span class="hljs-keyword">throws</span> Exception</span>{
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">super</span>.listPaging(pageIndex, request, modelMap);
}
</code></pre>
<ul>
<li>&#x81EA;&#x5B9A;&#x4E49;&#x5217;&#x8868;&#x7684;&#x67E5;&#x8BE2;&#x6761;&#x4EF6;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-meta">@Override</span>
<span class="hljs-meta">@GetMapping</span>(<span class="hljs-string">&quot;/list/{pageIndex}&quot;</span>)
<span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">listPaging</span><span class="hljs-params">(@PathVariable(<span class="hljs-string">&quot;pageIndex&quot;</span>)</span><span class="hljs-keyword">int</span> pageIndex, HttpServletRequest request, ModelMap modelMap) <span class="hljs-keyword">throws</span> Exception</span>{
    <span class="hljs-comment">// &#x9644;&#x52A0;&#x6761;&#x4EF6;</span>
    Query query = <span class="hljs-keyword">new</span> Query();
    query.add(Metadata.F.parentId, <span class="hljs-number">0</span>);
    query.add(Metadata.F.editable, <span class="hljs-keyword">true</span>);
    modelMap.addAttribute(<span class="hljs-string">&quot;criteria&quot;</span>, query.build());
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">super</span>.listPaging(pageIndex, request, modelMap);
}
</code></pre>
<ul>
<li>&#x5217;&#x8868;&#x67E5;&#x770B;&#x65B9;&#x6CD5;&#x4F1A;&#x8C03;&#x7528;attachMore()&#x65B9;&#x6CD5;&#xFF0C;&#x5982;&#x679C;&#x60A8;&#x9700;&#x8981;&#x4F20;&#x9012;&#x5173;&#x8054;&#x6570;&#x636E;&#x5230;&#x9875;&#x9762;&#xFF0C;&#x53EF;&#x4EE5;&#x91CD;&#x5199;attachMore&#x65B9;&#x6CD5;&#x3002;<pre><code class="lang-java"><span class="hljs-meta">@Override</span>
<span class="hljs-function"><span class="hljs-keyword">protected</span> <span class="hljs-keyword">void</span> <span class="hljs-title">attachMore</span><span class="hljs-params">(HttpServletRequest request, ModelMap modelMap)</span> <span class="hljs-keyword">throws</span> Exception</span>{
  <span class="hljs-comment">// &#x9644;&#x52A0;&#x5173;&#x8054;&#x6570;&#x636E;&#x5230;modelMap</span>
}
</code></pre>
</li>
</ul>
<h3 id="&#x521B;&#x5EFA;&#x8BE6;&#x60C5;&#x9875;&#x9762;"><a name="&#x521B;&#x5EFA;&#x8BE6;&#x60C5;&#x9875;&#x9762;" class="anchor-navigation-ex-anchor" href="#&#x521B;&#x5EFA;&#x8BE6;&#x60C5;&#x9875;&#x9762;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.2. &#x521B;&#x5EFA;&#x8BE6;&#x60C5;&#x9875;&#x9762;</h3>
<ul>
<li>&#x57FA;&#x672C;&#x7528;&#x6CD5;&#x5982;&#x4E0B;&#xFF0C;&#x8BE5;&#x529F;&#x80FD;&#x5C06;&#x81EA;&#x52A8;&#x6839;&#x636E;id&#x4ECE;service&#x4E2D;&#x83B7;&#x53D6;model&#xFF0C;&#x5E76;&#x4E14;&#x4F1A;&#x8C03;&#x7528;attachMore4View()&#x65B9;&#x6CD5;&#x5BF9;&#x5173;&#x8054;&#x5BF9;&#x8C61;&#x8FDB;&#x884C;&#x83B7;&#x53D6;&#xFF0C;&#x5982;&#x679C;&#x60A8;&#x5BF9;&#x5173;&#x8054;&#x5BF9;&#x8C61;&#x7684;&#x83B7;&#x53D6;&#x6709;&#x8981;&#x6C42;&#xFF0C;&#x4E0D;&#x59A8;&#x91CD;&#x5199;&#x8BE5;&#x65B9;&#x6CD5;&#x3002;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-meta">@GetMapping</span>(<span class="hljs-string">&quot;/view/{id}&quot;</span>)
<span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">viewPage</span><span class="hljs-params">(@PathVariable(<span class="hljs-string">&quot;id&quot;</span>)</span>Long id, HttpServletRequest request, ModelMap modelMap) <span class="hljs-keyword">throws</span> Exception </span>{  
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">super</span>.viewPage(id, request, modelMap);
}
</code></pre>
<ul>
<li>&#x81EA;&#x5B9A;&#x4E49;&#x83B7;&#x53D6;model&#x8FC7;&#x7A0B;&#x3002;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-meta">@GetMapping</span>(<span class="hljs-string">&quot;/view/{id}&quot;</span>)
<span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">viewPage</span><span class="hljs-params">(@PathVariable(<span class="hljs-string">&quot;id&quot;</span>)</span>Long id, HttpServletRequest request, ModelMap modelMap) <span class="hljs-keyword">throws</span> Exception </span>{  
    Metadata model = metadataServiceImpl.getModel(id);
    modelMap.addAttribute(<span class="hljs-string">&quot;model&quot;</span>, model);
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">super</span>.viewPage(id, request, modelMap);
}
</code></pre>
<ul>
<li>&#x8BE5;&#x65B9;&#x6CD5;&#x4F1A;&#x8C03;&#x7528;attachMore4View()&#x65B9;&#x6CD5;&#xFF0C;&#x5982;&#x679C;&#x60A8;&#x9700;&#x8981;&#x4F20;&#x9012;&#x5173;&#x8054;&#x6570;&#x636E;&#x5230;&#x9875;&#x9762;&#xFF0C;&#x53EF;&#x4EE5;&#x91CD;&#x5199;attachMore&#x65B9;&#x6CD5;&#x3002;<pre><code class="lang-java"><span class="hljs-meta">@Override</span>
<span class="hljs-function"><span class="hljs-keyword">protected</span> <span class="hljs-keyword">void</span> <span class="hljs-title">attachMore4View</span><span class="hljs-params">(Object id, BaseModel model, ModelMap modelMap)</span></span>{
  <span class="hljs-comment">// &#x83B7;&#x53D6;&#x6240;&#x6709;&#x5B50;&#x5143;&#x7D20;</span>
  List&lt;Metadata&gt; children = metadataService.getModelList(<span class="hljs-keyword">super</span>.newCriteria(BaseTreeModel.F.parentId, id));
  modelMap.put(<span class="hljs-string">&quot;children&quot;</span>, children);
}
</code></pre>
</li>
</ul>
<h3 id="&#x521B;&#x5EFA;&#x65B0;&#x5EFA;&#x9875;&#x9762;"><a name="&#x521B;&#x5EFA;&#x65B0;&#x5EFA;&#x9875;&#x9762;" class="anchor-navigation-ex-anchor" href="#&#x521B;&#x5EFA;&#x65B0;&#x5EFA;&#x9875;&#x9762;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.3. &#x521B;&#x5EFA;&#x65B0;&#x5EFA;&#x9875;&#x9762;</h3>
<ul>
<li>&#x57FA;&#x672C;&#x7528;&#x6CD5;&#x5982;&#x4E0B;:</li>
</ul>
<pre><code class="lang-java"><span class="hljs-meta">@GetMapping</span>(<span class="hljs-string">&quot;/create&quot;</span>)
<span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">createPage</span><span class="hljs-params">(HttpServletRequest request, ModelMap modelMap)</span> <span class="hljs-keyword">throws</span> Exception </span>{  
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">super</span>.createPage(request, modelMap);
}
</code></pre>
<ul>
<li>&#x8BE5;&#x65B9;&#x6CD5;&#x4F1A;&#x8C03;&#x7528;attachMore()&#x65B9;&#x6CD5;&#xFF0C;&#x5982;&#x679C;&#x60A8;&#x9700;&#x8981;&#x4F20;&#x9012;&#x5173;&#x8054;&#x6570;&#x636E;&#x5230;&#x66F4;&#x65B0;&#x9875;&#x9762;&#xFF0C;&#x53EF;&#x4EE5;&#x91CD;&#x5199;attachMore&#x65B9;&#x6CD5;&#x3002;</li>
</ul>
<h3 id="&#x63A5;&#x6536;&#x65B0;&#x5EFA;&#x6570;&#x636E;"><a name="&#x63A5;&#x6536;&#x65B0;&#x5EFA;&#x6570;&#x636E;" class="anchor-navigation-ex-anchor" href="#&#x63A5;&#x6536;&#x65B0;&#x5EFA;&#x6570;&#x636E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.4. &#x63A5;&#x6536;&#x65B0;&#x5EFA;&#x6570;&#x636E;</h3>
<ul>
<li>&#x91C7;&#x7528;&#x7ED1;&#x5B9A;&#x7684;&#x65B9;&#x5F0F;&#x63A5;&#x6536;&#x63D0;&#x4EA4;&#x7684;&#x6570;&#x636E;&#xFF0C;&#x5E76;&#x4F1A;&#x8FDB;&#x884C;&#x540E;&#x7AEF;&#x6821;&#x9A8C;&#xFF0C;&#x6821;&#x9A8C;&#x7684;&#x76F8;&#x5173;&#x6CE8;&#x89E3;&#x5728;model&#x6587;&#x4EF6;&#x4E2D;&#x7F16;&#x5199;&#xFF0C;&#x5BF9;&#x4E8E;&#x6821;&#x9A8C;&#x4E0D;&#x901A;&#x8FC7;&#x7684;&#x9519;&#x8BEF;&#x4FE1;&#x606F;&#x4F1A;&#x6DFB;&#x52A0;&#x5230;modelMap&#x4E2D;&#x3002;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-meta">@PostMapping</span>(<span class="hljs-string">&quot;/create&quot;</span>)
<span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">create</span><span class="hljs-params">(@Valid Metadata model, BindingResult result, HttpServletRequest request, ModelMap modelMap)</span> <span class="hljs-keyword">throws</span> Exception </span>{
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">super</span>.create(model, result, request, modelMap);
}
</code></pre>
<ul>
<li>&#x5728;&#x65B0;&#x5EFA;&#x6570;&#x636E;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5982;&#x679C;&#x5728;application.properties&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x8BBE;&#x7F6E;diboot.log.trace-enabled=false&#xFF0C;&#x5C06;&#x4F1A;&#x4FDD;&#x5B58;&#x65B0;&#x5EFA;&#x7684;&#x64CD;&#x4F5C;&#x8BB0;&#x5F55;&#x3002;</li>
<li>&#x5728;&#x65B0;&#x5EFA;&#x7ED3;&#x675F;&#x4E4B;&#x540E;&#xFF0C;&#x9ED8;&#x8BA4;&#x8FD4;&#x56DE;&#x5230;&#x65B0;&#x5EFA;&#x540E;&#x7684;&#x8BE6;&#x60C5;&#x9875;&#x9762;&#xFF0C;&#x5982;&#x679C;&#x4F20;&#x5165;&#x4E86;continue=true&#x7684;post&#x53C2;&#x6570;&#xFF0C;&#x5219;&#x4F1A;&#x8DF3;&#x8F6C;&#x5230;&#x65B0;&#x5EFA;&#x9875;&#x9762;&#x7EE7;&#x7EED;&#x65B0;&#x5EFA;&#xFF0C;&#x5982;&#x679C;&#x9700;&#x8981;&#x5728;&#x65B0;&#x5EFA;&#x6210;&#x529F;&#x540E;&#x9700;&#x8981;&#x8DF3;&#x8F6C;&#x5230;&#x5176;&#x4ED6;&#x4F4D;&#x7F6E;&#xFF0C;&#x53EF;&#x4EE5;&#x5728;&#x8C03;&#x7528;super.create()&#x65B9;&#x6CD5;&#x4E4B;&#x524D;&#xFF0C;&#x5C06;redirect&#x5C5E;&#x6027;&#x6DFB;&#x52A0;&#x5230;modelMap&#x4E2D;&#xFF0C;&#x4F8B;&#x5982;&#xFF1A;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-meta">@PostMapping</span>(<span class="hljs-string">&quot;/create&quot;</span>)
<span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">create</span><span class="hljs-params">(@Valid Metadata model, BindingResult result, HttpServletRequest request, ModelMap modelMap)</span> <span class="hljs-keyword">throws</span> Exception </span>{
    String redirect = getUrlPrefix() + <span class="hljs-string">&quot;/detail/&quot;</span> + model.getPk();
    modelMap.addAttribute(<span class="hljs-string">&quot;redirect&quot;</span>, redirect);
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">super</span>.create(model, result, request, modelMap);
}
</code></pre>
<ul>
<li>&#x5728;&#x65B0;&#x5EFA;&#x4E4B;&#x524D;&#x5982;&#x679C;&#x9700;&#x8981;&#x8FDB;&#x884C;&#x4E00;&#x4E9B;&#x64CD;&#x4F5C;&#xFF0C;&#x53EF;&#x4EE5;&#x91CD;&#x5199;beforeCreate()&#x65B9;&#x6CD5;&#x3002;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-function"><span class="hljs-keyword">protected</span> <span class="hljs-keyword">void</span> <span class="hljs-title">beforeCreate</span><span class="hljs-params">(HttpServletRequest request, BaseModel model, ModelMap modelMap)</span> <span class="hljs-keyword">throws</span> Exception</span>{

}
</code></pre>
<ul>
<li>&#x5728;&#x65B0;&#x5EFA;&#x6210;&#x529F;&#x4E4B;&#x540E;&#x5982;&#x679C;&#x9700;&#x8981;&#x8FDB;&#x884C;&#x4E00;&#x4E9B;&#x64CD;&#x4F5C;&#xFF0C;&#x53EF;&#x4EE5;&#x91CD;&#x5199;afterCreated()&#x65B9;&#x6CD5;&#x3002;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-function"><span class="hljs-keyword">protected</span> String <span class="hljs-title">afterCreated</span><span class="hljs-params">(HttpServletRequest request, BaseModel model, ModelMap modelMap)</span> <span class="hljs-keyword">throws</span> Exception</span>{
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">null</span>;
}
</code></pre>
<h3 id="&#x521B;&#x5EFA;&#x66F4;&#x65B0;&#x9875;&#x9762;"><a name="&#x521B;&#x5EFA;&#x66F4;&#x65B0;&#x9875;&#x9762;" class="anchor-navigation-ex-anchor" href="#&#x521B;&#x5EFA;&#x66F4;&#x65B0;&#x9875;&#x9762;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.5. &#x521B;&#x5EFA;&#x66F4;&#x65B0;&#x9875;&#x9762;</h3>
<ul>
<li>&#x57FA;&#x672C;&#x7528;&#x6CD5;&#x5982;&#x4E0B;:</li>
</ul>
<pre><code class="lang-java"><span class="hljs-meta">@GetMapping</span>(<span class="hljs-string">&quot;/update/{id}&quot;</span>)
<span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">updatePage</span><span class="hljs-params">(@PathVariable(<span class="hljs-string">&quot;id&quot;</span>)</span>Long id, HttpServletRequest request, ModelMap modelMap) <span class="hljs-keyword">throws</span> Exception </span>{  
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">super</span>.updatePage(id, request, modelMap);
}
</code></pre>
<ul>
<li><p>&#x540C;&#x5217;&#x8868;/&#x65B0;&#x5EFA;&#x9875;&#x9762;&#x4E00;&#x6837;, &#x8BE5;&#x65B9;&#x6CD5;&#x4E5F;&#x4F1A;&#x8C03;&#x7528;attachMore()&#x65B9;&#x6CD5;&#xFF0C;&#x5982;&#x679C;&#x60A8;&#x9700;&#x8981;&#x4F20;&#x9012;&#x5173;&#x8054;&#x6570;&#x636E;&#x5230;&#x66F4;&#x65B0;&#x9875;&#x9762;&#xFF0C;&#x53EF;&#x4EE5;&#x91CD;&#x5199;attachMore&#x65B9;&#x6CD5;&#x3002;</p>
</li>
<li><p>&#x81EA;&#x5B9A;&#x4E49;model&#x6216;&#x66F4;&#x6539;model&#x5C5E;&#x6027;&#x65F6;&#xFF0C;&#x53EF;&#x4EE5;&#x5C06;model&#x83B7;&#x53D6;&#x5230;&#x4E4B;&#x540E;&#x5E76;&#x6DFB;&#x52A0;&#x5230;modelMap&#x540E;&#xFF0C;&#x518D;&#x8C03;&#x7528;&#x7236;&#x7EA7;&#x65B9;&#x6CD5;&#x3002;</p>
</li>
</ul>
<pre><code class="lang-java"><span class="hljs-meta">@GetMapping</span>(<span class="hljs-string">&quot;/update/{id}&quot;</span>)
<span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">updatePage</span><span class="hljs-params">(@PathVariable(<span class="hljs-string">&quot;id&quot;</span>)</span>Long id, HttpServletRequest request, ModelMap modelMap) <span class="hljs-keyword">throws</span> Exception </span>{  
    Metadata model = metadataServiceImpl.getModel(id);
    modelMap.addAttribute(<span class="hljs-string">&quot;model&quot;</span>, model);
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">super</span>.updatePage(id, request, modelMap);
}
</code></pre>
<h3 id="&#x63A5;&#x6536;&#x66F4;&#x65B0;&#x6570;&#x636E;"><a name="&#x63A5;&#x6536;&#x66F4;&#x65B0;&#x6570;&#x636E;" class="anchor-navigation-ex-anchor" href="#&#x63A5;&#x6536;&#x66F4;&#x65B0;&#x6570;&#x636E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.6. &#x63A5;&#x6536;&#x66F4;&#x65B0;&#x6570;&#x636E;</h3>
<ul>
<li>&#x63A5;&#x6536;&#x66F4;&#x65B0;&#x6570;&#x636E;&#x4ECD;&#x7136;&#x91C7;&#x7528;&#x6570;&#x636E;&#x7ED1;&#x5B9A;&#x65B9;&#x5F0F;&#xFF0C;&#x540C;&#x65B0;&#x5EFA;&#x6570;&#x636E;&#x7684;&#x63A5;&#x6536;&#x3002;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-meta">@PostMapping</span>(<span class="hljs-string">&quot;/update/{id}&quot;</span>)
<span class="hljs-function"><span class="hljs-keyword">public</span> String <span class="hljs-title">update</span><span class="hljs-params">(@PathVariable(<span class="hljs-string">&quot;id&quot;</span>)</span>Long id, @Valid Metadata model, BindingResult result, HttpServletRequest request, ModelMap modelMap) <span class="hljs-keyword">throws</span> Exception</span>{
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">super</span>.update(id, model, result, request, modelMap);
}
</code></pre>
<ul>
<li>&#x5728;&#x66F4;&#x65B0;&#x6570;&#x636E;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x5982;&#x679C;&#x5728;application.properties&#x914D;&#x7F6E;&#x6587;&#x4EF6;&#x4E2D;&#x8BBE;&#x7F6E;diboot.log.trace-enabled=false&#xFF0C;&#x5C06;&#x4F1A;&#x4FDD;&#x5B58;&#x66F4;&#x65B0;&#x7684;&#x64CD;&#x4F5C;&#x8BB0;&#x5F55;&#x3002;</li>
<li>&#x5728;&#x66F4;&#x65B0;&#x4E4B;&#x524D;&#x5982;&#x679C;&#x9700;&#x8981;&#x8FDB;&#x884C;&#x4E00;&#x4E9B;&#x64CD;&#x4F5C;&#xFF0C;&#x53EF;&#x4EE5;&#x91CD;&#x5199;beforeUpdate()&#x65B9;&#x6CD5;&#x3002;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-function"><span class="hljs-keyword">protected</span> <span class="hljs-keyword">void</span> <span class="hljs-title">beforeUpdate</span><span class="hljs-params">(HttpServletRequest request, BaseModel model, ModelMap modelMap)</span> <span class="hljs-keyword">throws</span> Exception</span>{
}
</code></pre>
<ul>
<li>&#x5728;&#x66F4;&#x65B0;&#x6210;&#x529F;&#x4E4B;&#x540E;&#x5982;&#x679C;&#x9700;&#x8981;&#x8FDB;&#x884C;&#x4E00;&#x4E9B;&#x64CD;&#x4F5C;&#xFF0C;&#x53EF;&#x4EE5;&#x91CD;&#x5199;afterUpdated()&#x65B9;&#x6CD5;&#x3002;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-function"><span class="hljs-keyword">protected</span> String <span class="hljs-title">afterUpdated</span><span class="hljs-params">(HttpServletRequest request, BaseModel model, ModelMap modelMap)</span> <span class="hljs-keyword">throws</span> Exception</span>{
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">null</span>;        
}
</code></pre>
<h3 id="&#x5220;&#x9664;&#x5DF2;&#x6709;&#x6570;&#x636E;"><a name="&#x5220;&#x9664;&#x5DF2;&#x6709;&#x6570;&#x636E;" class="anchor-navigation-ex-anchor" href="#&#x5220;&#x9664;&#x5DF2;&#x6709;&#x6570;&#x636E;"><i class="fa fa-link" aria-hidden="true"></i></a>1.3.7. &#x5220;&#x9664;&#x5DF2;&#x6709;&#x6570;&#x636E;</h3>
<ul>
<li>&#x5220;&#x9664;&#x5DF2;&#x6709;&#x6570;&#x636E;&#xFF0C;&#x9700;&#x8981;&#x4F20;&#x5165;id&#x6570;&#x636E;&#xFF0C;&#x540C;&#x65F6;&#x4E5F;&#x4F1A;&#x6839;&#x636E;diboot.log.trace-enabled&#x7684;&#x914D;&#x7F6E;&#x9879;&#x6765;&#x51B3;&#x5B9A;&#x662F;&#x5426;&#x8BB0;&#x5F55;&#x5220;&#x9664;&#x7684;&#x64CD;&#x4F5C;&#x8BB0;&#x5F55;&#x3002;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-meta">@ResponseBody</span>
<span class="hljs-meta">@PostMapping</span>(<span class="hljs-string">&quot;/delete/{id}&quot;</span>)
<span class="hljs-function"><span class="hljs-keyword">public</span> Map&lt;String, Object&gt; <span class="hljs-title">delete</span><span class="hljs-params">(@PathVariable(<span class="hljs-string">&quot;id&quot;</span>)</span>Long id, HttpServletRequest request) <span class="hljs-keyword">throws</span> Exception</span>{
    <span class="hljs-keyword">return</span> <span class="hljs-keyword">super</span>.delete(id, request);
}
</code></pre>
<ul>
<li>&#x5728;&#x5220;&#x9664;&#x4E4B;&#x524D;&#x5982;&#x679C;&#x9700;&#x8981;&#x8FDB;&#x884C;&#x4E00;&#x4E9B;&#x64CD;&#x4F5C;&#xFF0C;&#x53EF;&#x4EE5;&#x91CD;&#x5199;beforeDelete()&#x65B9;&#x6CD5;&#xFF0C;&#x6539;&#x65B9;&#x6CD5;&#x8FD4;&#x56DE;&#x7684;&#x4E3A;&#x81EA;&#x5B9A;&#x4E49;&#x5904;&#x7406;&#x6D41;&#x7A0B;&#x7684;&#x9519;&#x8BEF;&#x63D0;&#x793A;&#xFF0C;&#x9ED8;&#x8BA4;&#x4E3A;&#x4E0B;&#xFF0C;&#x4E0D;&#x53EF;&#x5220;&#x9664;&#x6570;&#x636E;&#x3002;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-function"><span class="hljs-keyword">protected</span> String <span class="hljs-title">beforeDelete</span><span class="hljs-params">(BaseModel model)</span></span>{
    <span class="hljs-keyword">return</span> <span class="hljs-string">&quot;&#x60A8;&#x65E0;&#x6743;&#x5220;&#x9664;&#x8BE5;&#x6570;&#x636E;&#xFF01;&quot;</span>;
}
</code></pre>
<ul>
<li>&#x5728;&#x5220;&#x9664;&#x6210;&#x529F;&#x4E4B;&#x540E;&#x5982;&#x679C;&#x9700;&#x8981;&#x8FDB;&#x884C;&#x4E00;&#x4E9B;&#x64CD;&#x4F5C;&#xFF0C;&#x53EF;&#x4EE5;&#x91CD;&#x5199;afterDeleted()&#x65B9;&#x6CD5;&#x3002;</li>
</ul>
<pre><code class="lang-java"><span class="hljs-function"><span class="hljs-keyword">protected</span> <span class="hljs-keyword">void</span> <span class="hljs-title">afterDeleted</span><span class="hljs-params">(HttpServletRequest request, BaseModel model)</span> </span>{
}
</code></pre>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                

            </div>

            
                
                <a href="Controller基类.html" class="navigation navigation-prev " aria-label="Previous page: Controller基类">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="CrudRestController基类.html" class="navigation navigation-next " aria-label="Next page: CrudRestController基类">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"CrudController基类","level":"1.4.2","depth":2,"next":{"title":"CrudRestController基类","level":"1.4.3","depth":2,"path":"MVC通用封装/CrudRestController基类.md","ref":"MVC通用封装/CrudRestController基类.md","articles":[]},"previous":{"title":"Controller基类","level":"1.4.1","depth":2,"path":"MVC通用封装/Controller基类.md","ref":"MVC通用封装/Controller基类.md","articles":[]},"dir":"ltr"},"config":{"plugins":["-sharing","sharing-plus","anchor-navigation-ex","theme-vuejs-2"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"search":{},"sharing-plus":{"qq":false,"all":["facebook","google","twitter","instapaper","linkedin","pocket","stumbleupon"],"douban":false,"facebook":true,"weibo":false,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":true,"messenger":false,"line":false,"vk":false,"pocket":true,"google":false,"viber":false,"stumbleupon":false,"qzone":false,"linkedin":false},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"theme-vuejs-2":{},"fontsettings":{"theme":"white","family":"sans","size":2},"highlight":{},"anchor-navigation-ex":{"mode":"float","pageTop":{"level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false},"showLevel":true,"tocLevel1Icon":"fa fa-hand-o-right","tocLevel2Icon":"fa fa-hand-o-right","tocLevel3Icon":"fa fa-hand-o-right","showGoTop":true,"isShowTocTitleIcon":true,"printLog":false,"multipleH1":true,"associatedWithSummary":true,"float":{"floatIcon":"fa fa-navicon","level1Icon":"","level2Icon":"","level3Icon":"","showLevelIcon":false}},"sharing":{"qq":true,"all":["weibo","qq","linkedin","qzone","douban"],"douban":false,"weibo":true,"instapaper":false,"whatsapp":false,"hatenaBookmark":false,"twitter":false,"messenger":false,"line":false,"vk":false,"pocket":false,"viber":false,"stumbleupon":false,"qzone":true,"linkedin":false},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Diboot基础框架","gitbook":"*","description":"Diboot基础框架"},"file":{"path":"MVC通用封装/CrudController基类.md","mtime":"2018-11-08T08:51:40.455Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2018-11-10T15:08:25.671Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-sharing-plus/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

